package models.tutor;

import models.common.CreateInfoExt;
import utils.ShouldSkip;

import javax.persistence.*;

/**
 * Created by FireFire on 6/26 0026.
 * 栏目内容List
 */
@Entity
@Table(name="tt_themelist")
public class ThemeList extends CreateInfoExt {

    /**
     * 关联的栏目
     */
    @ManyToOne
    @JoinColumn(name="theme_code",referencedColumnName = "code")
    public Theme theme;

    /**
     * 关联的导师
     */
    @ShouldSkip
    @ManyToOne
    @JoinColumn(name = "tutor_code",referencedColumnName = "code" )
    public Tutor tutor;

    /**
     * 标题
     */
    public String title;
    /**
     * 同步或维护的内容
     */
    @Column(length = 4000)
    public String content;

    /**
     * 是否自动同步
     */
    public boolean isAuto;

    /**
     * 是否展示
     */
    public boolean isOpen;

    /**
     * 是否有效
     */
    public boolean status;

    /**
     * 排序
     */
    public int rank=0;
}
